//
//  VideoTableViewCell.m
//  FoodList
//
//  Created by Jason on 16/4/8.
//  Copyright © 2016年 王金晶. All rights reserved.
//

#import "VideoTableViewCell.h"

@implementation VideoTableViewCell


- (void)setModel:(VideoModel *)model {
    _model = model;
    [self.coverImg sd_setImageWithURL:[NSURL URLWithString:model.coverForSharing]];
    self.titleLab.text = model.title;
    self.titleLab.font = [UIFont systemFontOfSize:returnFont(Height) + 2];
    self.durationLab.text = [NSString stringWithFormat:@"%d' %d\"", model.duration / 60 , model.duration % 60];
    self.durationLab.font = [UIFont systemFontOfSize:returnFont(Height) + 1];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
